import java.io.File;
import java.net.URL;
import java.util.Scanner;

public class EasyScannerTest {
	public static void main(String[] args) throws Exception {

		System.out.println("Google\n" + new Scanner(new URL("http://google.com").openStream())
													.useDelimiter("\\A").next());

		System.out.println("TextFile\n"+new Scanner(new File("poem.txt"))
													.useDelimiter("\\A").next());
		
	}
		
}
